package com.sixth.volunteerservicesystem.Controller.DonationController.frontDonation;

import com.sixth.volunteerservicesystem.Dao.DonationRecordsRepository;
import com.sixth.volunteerservicesystem.domain.DonationRecords;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Steve Jobs
 * @create 2020-12-22 20:57
 */
@Controller
public class QRCode {

    @Autowired
    DonationRecordsRepository donationRecordsRepository;


    @RequestMapping("QRCode")
    public String qrCode(){
        DonationRecords donationRecords = new DonationRecords();

        donationRecords.setMoney(100);
        donationRecords.setUserId("syd");

        donationRecordsRepository.save(donationRecords);

        return "donation/QRCode";
    }
}
